package com.cxl.feign;

import com.cxl.feign.callback.RoleFeignClientBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * @author: 20971
 * @time: 2022/2/21 16:43
 * @description:
 */

@FeignClient(name = "role-server",fallback = RoleFeignClientBack.class)
public interface RoleFeignClient {

    @RequestMapping(value = "/role/list")
    Map<String, Object> map();
}
